Fully Dynamic All Pairs Shortest Paths with Real Edge Weights
نویسندگان
چکیده
We present the first fully dynamic algorithm for maintaining all pairs shortest paths in directed graphs with real-valued edge weights. Given a dynamic directed graph G such that each edge can assume at most S different real values, we show how to support updates in O(n2.5 √ S log n ) amortized time and queries in optimal worst-case time. No previous fully dynamic algorithm was known for this problem. In the special case where edge weights can only be increased, we give a randomized algorithm with one-sided error which supports updates faster in O(S · n log n) amortized time. We also show how to obtain query/update trade-offs for this problem, by introducing two new families of algorithms. Algorithms in the first family achieve an update bound of Õ(S · k · n2) 1 and a query bound of Õ(n/k), and improve over the best known update bounds for k in the range (n/S)1/3 ≤ k < (n/S)1/2. Algorithms in the second family achieve an update bound of Õ ( S · k · n2 ) and a query bound of Õ(n2/k2), and are competitive with the best known update bounds (first family included) for k in the range (n/S)1/6 ≤ k < (n/S)1/3. Work partially supported by the IST Programme of the EU under contract n. IST-199914.186 (ALCOM-FT) and by CNR, the Italian National Research Council, under contract n. 01.00690.CT26. Portions of this work have been presented at the 42nd Annual Symp. on Foundations of Computer Science (FOCS 2001) [8] and at the 29th International Colloquium on Automata, Languages, and Programming (ICALP’02) [9]. Email: [email protected]. URL: http://www.dis.uniroma1.it/~demetres. Email: [email protected]. URL: http://www.info.uniroma2.it/~italiano. Throughout the paper, we use Õ(f(n)) to denote O(f(n)polylog(n)).
منابع مشابه
A Fully Dynamic Algorithm for Distributed Shortest Paths
We propose a fully-dynamic distributed algorithm for the all-pairs shortest paths problem on general networks with positive real edge weights. If ∆σ is the number of pairs of nodes changing the distance after a single edge modification σ (insert, delete, weight decrease, or weight increase) then the message complexity of the proposed algorithm is O(n∆σ) in the worst case, where n is the number ...
متن کاملFully Dynamic All Pairs All Shortest Paths
We consider the all pairs all shortest paths (APASP) problem, which maintains all of the multiple shortest paths for every vertex pair in a directed graph G = (V,E) with a positive real weight on each edge. We present a fully dynamic algorithm for this problem in which an update supports either weight increases or weight decreases on a subset of edges incident to a vertex. Our algorithm runs in...
متن کاملAll - Pairs Shortest Paths in O ( n 2 ) Time with High Probability
We present an all-pairs shortest path algorithm whose running time on a complete directed graph on n vertices whose edge weights are chosen independently and uniformly at random from [0, 1] is O(n2), in expectation and with high probability. This resolves a long-standing open problem. The algorithm is a variant of the dynamic all-pairs shortest paths algorithm of Demetrescu and Italiano [2006]....
متن کاملAverage Update Times for Fully-Dynamic All-Pairs Shortest Paths
We study the fully-dynamic all pairs shortest path problem for graphs with arbitrary non-negative edge weights. It is known for digraphs that an update of the distance matrix costs Õ(n) worst-case time [Thorup, STOC ’05] and Õ(n) amortized time [Demetrescu and Italiano, J.ACM ’04] where n is the number of vertices. We present the first average-case analysis of the undirected problem. For a rand...
متن کاملFully Dynamic Betweenness Centrality
We present fully dynamic algorithms for maintaining betweenness centrality (BC) of vertices in a directed graph G = (V,E) with positive edge weights. BC is a widely used parameter in the analysis of large complex networks. We achieve an amortized O(ν∗ · log n) time per update with our basic algorithm, and O(ν∗ · log n) time with a more complex algorithm, where n = |V |, and ν∗ bounds the number...
متن کامل